package com.cqan.box.rest;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;

import com.cqan.box.entity.ResultResp;

@Path("/")
public interface MessageRestService {

	
	@POST
	@Path("/platform/login")
	public ResultResp login(@FormParam("name") String name,
			@FormParam("pwd") String pwd);
	
	
	@POST
	@Path("/platform/send")
	public ResultResp platformSend(String dto);
	@POST
	@Path("/box/send")
	public ResultResp boxSend(String dto);
	
	
	@POST
	@Path("/app/setup")
	public ResultResp appSetup(@FormParam("asid")String asid,@FormParam("token")String token, @Context HttpHeaders headers);
	
	@POST
	@Path("/app/register")
	public ResultResp appReg(@FormParam("asid")String appid,@FormParam("boxid")String boxid, @Context HttpHeaders headers);
	
	@POST
	@Path("/box/setup")
	public ResultResp boxSetup(@FormParam("boxid")String boxid,@Context HttpHeaders headers);
}
